package com.ddone.mapper;

import com.ddone.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ddone
 * @date 2024/3/24-14:23
 */
public interface UserMapper {

    User selectByNameAndPassword(@Param("account") String account,
                                 @Param("password") String password);

    int insert(User user);

    List<User> selectAll();

    int deleteById(@Param("uId") String uId);

    User selectById(@Param("uId") String uid);

    int update(User user);

    List<User> search(@Param("keyword") String keyword);
}
